package com.art.museumbackend.service;

import com.art.museumbackend.entity.SystemLog;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

public interface SystemLogService extends IService<SystemLog> {
    // 分页查询日志
    Page<SystemLog> getLogList(String type, String username, LocalDateTime startTime, LocalDateTime endTime, int page, int size);
    
    // 清理指定天数前的日志
    void cleanLogs(String type, int days);
    
    // 导出日志
    byte[] exportLogs(String type, String username, LocalDateTime startTime, LocalDateTime endTime);
} 